package test;
import nme.display.Bitmap;
import nme.display.BitmapData;
import nme.display.Sprite;

/**
 * ...
 * @author liwei
 */

class TestDraw extends TestBase
{

	override public function start():Void 
	{
		var sp = new Sprite();
	   sp.graphics.beginFill(0,1);
	   sp.graphics.drawCircle(50,50,50);
	   sp.graphics.endFill();

	   #if neko
	   var bd = new BitmapData(100,100,true,flash.display.BitmapData.createColor(0x000000,0x08));
	   #else
	   var bd = new BitmapData(100,100,true,0x08000000);
	   #end
	   bd.draw(sp);
	   var bm = new Bitmap(bd);
	   this.addChild(bm);
	   bm.x = 100;
	}
	
}